<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>
  <script>
    // 原型法创建 创建类似的对象
    // 每个对象都有 __proto__ 隐式原型(原型指针) 
    var wuling = {
      // __proto__: {}
    }
    var car = {
      name: "车",
      color: "白色",
      run: function () { }
    }
    wuling.__proto__ = car;
    console.log(wuling)


  </script>
</body>

</html>